var allCollections = { 
    callNativeFunction: function (success, fail, resultType) { 
    resultType = 'success';
      return cordova.exec( success, fail, 
                           "com.summerrain.colnect.plugins.allCollections", 
                           "nativeAction", [resultType]); 
    } 
};